package ystp.service;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ystp.dao.*;
import ystp.model.*;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class FujianService {

    @Resource
    FujianotMapper ddMapper;
    @Autowired
    FujiantMapper fujiantMapper;
    @Autowired
    FujianjsbMapper fujianjsbMapper;
    @Autowired
    FujianslMapper fujianslMapper;
    @Autowired
    FujianwMapper fujianwMapper;
    @Autowired
    FujianqMapper fujianqMapper;
    @Autowired
    FujianbMapper fujianbMapper;
    @Autowired
    FujianjsMapper fujianjsMapper;
    @Autowired
    FujianyuanyanMapper fujianyuanyanMapper;
    @Autowired
    FujianshiliuMapper fujianshiliuMapper;
    @Autowired
    FujiankjjibenMapper fujiankjjibenMapper;
    @Autowired
    FujiankjyuecaiMapper fujiankjyuecaiMapper;
    @Autowired
    FujiantihuanMapper fujiantihuanMapper;

    public boolean isexistByxiangmuId(String xiangmuId,String xiangmuleixing){
        if(xiangmuleixing.equals("21")||xiangmuleixing.equals("22")){
            FujianotExample mmExample = new FujianotExample();
            FujianotExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return ddMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("23")){
            FujiantExample mmExample = new FujiantExample();
            FujiantExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiantMapper.selectByExample(mmExample).size() > 0;
        }
/*        if(xiangmuleixing.equals("23")){
            FujianjsbExample mmExample = new FujianjsbExample();
            FujianjsbExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianjsbMapper.selectByExample(mmExample).size() > 0;
        }*/
        if(xiangmuleixing.equals("24")){
            FujianslExample mmExample = new FujianslExample();
            FujianslExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianslMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("25")){
            FujianwExample mmExample = new FujianwExample();
            FujianwExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianwMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("26")){
            FujianqExample mmExample = new FujianqExample();
            FujianqExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianqMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("27")||xiangmuleixing.equals("35")){
            FujianbExample mmExample = new FujianbExample();
            FujianbExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianbMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("28")||xiangmuleixing.equals("29")){
            FujianjsExample mmExample = new FujianjsExample();
            FujianjsExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianjsMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("30")){
            FujiantihuanExample mmExample = new FujiantihuanExample();
            FujiantihuanExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiantihuanMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("31")){
            FujianyuanyanExample mmExample = new FujianyuanyanExample();
            FujianyuanyanExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianyuanyanMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("32")){
            FujianshiliuExample mmExample = new FujianshiliuExample();
            FujianshiliuExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianshiliuMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("33")||xiangmuleixing.equals("36")){
            FujiankjjibenExample mmExample = new FujiankjjibenExample();
            FujiankjjibenExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiankjjibenMapper.selectByExample(mmExample).size() > 0;
        }
        if(xiangmuleixing.equals("34")){
            FujiankjyuecaiExample mmExample = new FujiankjyuecaiExample();
            FujiankjyuecaiExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiankjyuecaiMapper.selectByExample(mmExample).size() > 0;
        }
        return false;
    }

    public List<Fujianb> findAllByXiangmuId27(String xiangmuId,String beizhu1){
        FujianbExample mmExample=new FujianbExample();
        FujianbExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId).andBeuzhu1EqualTo(beizhu1);
        return fujianbMapper.selectByExample(mmExample);
    }

    public List<Fujiansl> findAllByXiangmuId24(String xiangmuId){
        FujianslExample mmExample=new FujianslExample();
        FujianslExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId);
        return fujianslMapper.selectByExample(mmExample);
    }
    public List<Fujianjs> findAllByXiangmuId28(String xiangmuId){
        FujianjsExample mmExample=new FujianjsExample();
        FujianjsExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId).andBeuzhu1NotEqualTo("1");
        return fujianjsMapper.selectByExample(mmExample);
    }
    public List<Fujianjs> findAllByXiangmuId29(String xiangmuId){
        FujianjsExample mmExample=new FujianjsExample();
        FujianjsExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId);
        return fujianjsMapper.selectByExample(mmExample);
    }
    public List<Fujiantihuan> findAllByXiangmuId30(String xiangmuId){
        FujiantihuanExample mmExample=new FujiantihuanExample();
        FujiantihuanExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId);
        return fujiantihuanMapper.selectByExample(mmExample);
    }
    public List<Fujianyuanyan> findAllByXiangmuId31(String xiangmuId){
        FujianyuanyanExample mmExample=new FujianyuanyanExample();
        FujianyuanyanExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId);
        return fujianyuanyanMapper.selectByExample(mmExample);
    }

    public List<Map<String, Object>> findFeiZhiliaoByXiangmuId(String xiangmuId,String ppUserId){

        return fujianshiliuMapper.findFeiZhiliaoByXiangmuId(xiangmuId,ppUserId);
    }
    public List<Fujianshiliu> findAllByXiangmuId32(String xiangmuId){
        FujianshiliuExample mmExample=new FujianshiliuExample();
        FujianshiliuExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId).andBeuzhu1EqualTo("1");
        return fujianshiliuMapper.selectByExample(mmExample);
    }
    public List<Fujianb> findByXiangmuId36(String xiangmuId){
        FujianbExample mmExample=new FujianbExample();
        FujianbExample.Criteria criteria=mmExample.createCriteria();
        criteria.andXiangmuidEqualTo(xiangmuId).andYuxuanhuiyijianEqualTo("有专科申报，预选会得票超过半数");
        return fujianbMapper.selectByExample(mmExample);
    }

    public boolean deleteByxiangmuId(String xiangmuId,String ppxiangmuleixing){
        if(ppxiangmuleixing.equals("21")||ppxiangmuleixing.equals("22")){
            FujianotExample mmExample = new FujianotExample();
            FujianotExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return ddMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("23")){
            FujiantExample mmExample = new FujiantExample();
            FujiantExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiantMapper.deleteByExample(mmExample) >= 0;
        }
//        if(ppxiangmuleixing.equals("23")){
//            FujianjsbExample mmExample = new FujianjsbExample();
//            FujianjsbExample.Criteria criteria = mmExample.createCriteria();
//            criteria.andXiangmuidEqualTo(xiangmuId);
//            return fujianjsbMapper.deleteByExample(mmExample) >= 0;
//        }
        if(ppxiangmuleixing.equals("24")){
            FujianslExample mmExample = new FujianslExample();
            FujianslExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianslMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("25")){
            FujianwExample mmExample = new FujianwExample();
            FujianwExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianwMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("26")){
            FujianqExample mmExample = new FujianqExample();
            FujianqExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianqMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("27")||ppxiangmuleixing.equals("35")){
            FujianbExample mmExample = new FujianbExample();
            FujianbExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianbMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("28")||ppxiangmuleixing.equals("29")){
            FujianjsExample mmExample = new FujianjsExample();
            FujianjsExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianjsMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("30")){
            FujiantihuanExample mmExample = new FujiantihuanExample();
            FujiantihuanExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiantihuanMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("31")){
            FujianyuanyanExample mmExample = new FujianyuanyanExample();
            FujianyuanyanExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianyuanyanMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("32")){
            FujianshiliuExample mmExample = new FujianshiliuExample();
            FujianshiliuExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujianshiliuMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("33")||ppxiangmuleixing.equals("36")){
            FujiankjjibenExample mmExample = new FujiankjjibenExample();
            FujiankjjibenExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiankjjibenMapper.deleteByExample(mmExample) >= 0;
        }
        if(ppxiangmuleixing.equals("34")){
            FujiankjyuecaiExample mmExample = new FujiankjyuecaiExample();
            FujiankjyuecaiExample.Criteria criteria = mmExample.createCriteria();
            criteria.andXiangmuidEqualTo(xiangmuId);
            return fujiankjyuecaiMapper.deleteByExample(mmExample) >= 0;
        }
        return false;
    }

    public int insertBatch21(List<Fujianot> list){
        return ddMapper.insertBatch(list);
    }
    public int insertBatch22(List<Fujiant> list){
        return fujiantMapper.insertBatch(list);
    }
    public int insertBatch23(List<Fujianjsb> list){
        return fujianjsbMapper.insertBatch(list);
    }
    public int insertBatch24(List<Fujiansl> list){
        return fujianslMapper.insertBatch(list);
    }
    public int insertBatch25(List<Fujianw> list){
        return fujianwMapper.insertBatch(list);
    }
    public int insertBatch26(List<Fujianq> list){
        return fujianqMapper.insertBatch(list);
    }
    public int insertBatch27(List<Fujianb> list){
        return fujianbMapper.insertBatch(list);
    }
    public int insertBatch28(List<Fujianjs> list){
        return fujianjsMapper.insertBatch(list);
    }
    public int insertBatch30(List<Fujiantihuan> list){
        return fujiantihuanMapper.insertBatch(list);
    }
    public int insertBatch31(List<Fujianyuanyan> list){
        return fujianyuanyanMapper.insertBatch(list);
    }
    public int insertBatch32(List<Fujianshiliu> list){
        return fujianshiliuMapper.insertBatch(list);
    }
    public int insertBatch33(List<Fujiankjjiben> list){
        return fujiankjjibenMapper.insertBatch(list);
    }
    public int insertBatch34(List<Fujiankjyuecai> list){
        return fujiankjyuecaiMapper.insertBatch(list);
    }

    public List<Map<String, Object>> selectPingui(String ppxiangmuleixing,String ppxiangmuId,int ppPageIndex,int ppPageSize) {
        int mmStartIndex = (ppPageIndex - 1) * ppPageSize;
        if(ppxiangmuleixing.equals("21")||ppxiangmuleixing.equals("22")){
            return ddMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("23")){
            return fujiantMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
/*        if(ppxiangmuleixing.equals("23")){
            return fujianjsbMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }*/
        if(ppxiangmuleixing.equals("24")){
            return fujianslMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("25")){
            return fujianwMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("26")){
            return fujianqMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("27")){
            return fujianbMapper.selectPingui27(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("35")){
            return fujianbMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("28")||ppxiangmuleixing.equals("29")){
            return fujianjsMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("30")){
            return fujiantihuanMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("31")){
            return fujianyuanyanMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("32")){
            return fujianshiliuMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("33")||ppxiangmuleixing.equals("36")){
            return fujiankjjibenMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        if(ppxiangmuleixing.equals("34")){
            return fujiankjyuecaiMapper.selectPingui(ppxiangmuId,mmStartIndex,ppPageSize);
        }
        return null;
    }

    public Integer countPingui(String ppxiangmuleixing, String ppxiangmuId) {
        if(ppxiangmuleixing.equals("21")||ppxiangmuleixing.equals("22")){
            return ddMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("23")){
            return fujiantMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("24")){
            return fujianslMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("25")){
            return fujianwMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("26")){
            return fujianqMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("27")||ppxiangmuleixing.equals("35")){
            return fujianbMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("28")||ppxiangmuleixing.equals("29")){
            return fujianjsMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("30")){
            return fujiantihuanMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("31")){
            return fujianyuanyanMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("32")){
            return fujianshiliuMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("33")||ppxiangmuleixing.equals("36")){
            return fujiankjjibenMapper.countPingui(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("34")){
            return fujiankjyuecaiMapper.countPingui(ppxiangmuId);
        }
        return null;
    }
    public Integer countShengchanqiye(String ppxiangmuleixing, String ppxiangmuId) {
        if(ppxiangmuleixing.equals("21")||ppxiangmuleixing.equals("22")){
            return ddMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("23")){
            return fujiantMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("24")){
            return fujianslMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("25")){
            return fujianwMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("26")){
            return fujianqMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("27")){
            return fujianbMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("28")||ppxiangmuleixing.equals("29")){
            return fujianjsMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("30")){
            return fujiantihuanMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("31")){
            return fujianyuanyanMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("32")){
            return fujianshiliuMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("33")||ppxiangmuleixing.equals("36")){
            return fujiankjjibenMapper.countNumber(ppxiangmuId);
        }
        if(ppxiangmuleixing.equals("34")){
            return fujiankjyuecaiMapper.countNumber(ppxiangmuId);
        }
        return null;
    }

    public List<Map<String, Object>> findShengchanqiyeByPingui(String ppxiangmuleixing,String ppxiangmuId, String mmPinguiOne) {
        if(ppxiangmuleixing.equals("21")||ppxiangmuleixing.equals("22")){
            return ddMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("23")){
            return fujiantMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
  /*      if(ppxiangmuleixing.equals("23")){
            return fujianjsbMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }*/
        if(ppxiangmuleixing.equals("24")){
            return fujianslMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("25")){
            return fujianwMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("26")){
            return fujianqMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("27")){
            return fujianbMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("28")||ppxiangmuleixing.equals("29")){
            return fujianjsMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("30")){
            return fujiantihuanMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("31")){
            return fujianyuanyanMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("32")){
            return fujianshiliuMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("33")||ppxiangmuleixing.equals("36")){
            return fujiankjjibenMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("34")){
            return fujiankjyuecaiMapper.findShengchanqiyeByPingui(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("35")){
            return fujianbMapper.findPinzhongByPinguiView(ppxiangmuId,mmPinguiOne);
        }
        return null;
    }
    public List<Map<String, Object>> findShengchanqiyeByPinguiResult(String ppxiangmuleixing,String ppxiangmuId, String mmPinguiOne) {
        if(ppxiangmuleixing.equals("21")||ppxiangmuleixing.equals("22")){
            return ddMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("23")){
            return fujiantMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
  /*      if(ppxiangmuleixing.equals("23")){
            return fujianjsbMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }*/
        if(ppxiangmuleixing.equals("24")){
            return fujianslMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("25")){
            return fujianwMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("26")){
            return fujianqMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("27")){
            return fujianbMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("28")||ppxiangmuleixing.equals("29")){
            return fujianjsMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("30")){
            return fujiantihuanMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("31")){
            return fujianyuanyanMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("32")){
            return fujianshiliuMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("33")||ppxiangmuleixing.equals("36")){
            return fujiankjjibenMapper.findqianzibiao(ppxiangmuId,mmPinguiOne);
        }
        if(ppxiangmuleixing.equals("34")){
            return fujiankjyuecaiMapper.findqianzibiaoResult(ppxiangmuId,mmPinguiOne);
        }
        return null;
    }
}
